<html>
<head><meta charset="utf-8"><title>Testing error index markdown files · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20error.20index.20markdown.20files.html">Testing error index markdown files</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222700598"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20error%20index%20markdown%20files/near/222700598" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20error.20index.20markdown.20files.html#222700598">(Jan 14 2021 at 10:32)</a>:</h4>
<p>How do I test the code examples in the error index markdown files?</p>



<a name="222732763"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20error%20index%20markdown%20files/near/222732763" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20error.20index.20markdown.20files.html#222732763">(Jan 14 2021 at 15:29)</a>:</h4>
<p><code>./x.py test src/tools/error_index_generator</code></p>
<p>If you have already run the command above: <code>./x.py test --keep-stage=0 --keep-stage=1 src/tools/error_index_generator</code> will help avoid rebuilding the compiler each time you edit the markdown.</p>
<p>Personally I would iterate in a temporary local project (or on <a href="http://play.rust-lang.org">play.rust-lang.org</a> if you prefer), and only run the full tests just before opening the PR.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>